//
//  BBYPhotoScroView.m
//  BearSiX
//
//  Created by Tom on 16/3/29.
//  Copyright © 2016年 Tom. All rights reserved.
//

#import "BBYPhotoScroView.h"
#define YFont(x) [UIFont systemFontOfSize:x]
#define JianGe WINSIZEWIDTH/30
@implementation BBYPhotoScroView
-(instancetype)initWithFrame:(CGRect)frame{

    self = [super initWithFrame:frame];
    if (self) {
        //[self createUI];
    }
    return self;
}
-(void)createUI{

    //拍照店面
    CGRect frame = CGRectMake(WINSIZEWIDTH/7, 0, WINSIZEWIDTH, WINSIZEWIDTH);
    UILabel *photoCompany = [[UILabel alloc]init];
    photoCompany.text = @"拍照店面：";
    photoCompany.font = [UIFont systemFontOfSize:WINSIZEWIDTH/22];
    photoCompany.textColor = [UIColor colorWithHexString:@"656769"];
    photoCompany.frame  =[photoCompany textRectForBounds:frame limitedToNumberOfLines:1];
    photoCompany.height = WINSIZEWIDTH/12;
    photoCompany.backgroundColor =[UIColor redColor];
    //拍摄状态
    UILabel *photoStatus = [[UILabel alloc]init];
    photoStatus.text = @"拍摄状态：";
    photoStatus.textColor = photoCompany.textColor;
    photoStatus.font = photoCompany.font;
    photoStatus.frame = [photoStatus textRectForBounds:CGRectMake(WINSIZEWIDTH/7, CGRectGetMaxY(photoCompany.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoStatus.height = photoCompany.height;
    
    //摄影师
    UILabel *photoPerson = [[UILabel alloc]init];
    photoPerson.textColor = photoCompany.textColor;
    photoPerson.text = @"摄 影 师 ：";
    photoPerson.font = photoCompany.font;
    photoPerson.frame = [photoPerson textRectForBounds:CGRectMake(photoPerson.x, CGRectGetMaxY(photoStatus.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoPerson.height = photoCompany.height;
    //摄影助理
    UILabel *photoZhuli = [[UILabel alloc]init];
    photoZhuli.text = @"摄影助理";
    photoZhuli.textColor = photoPerson.textColor;
    photoZhuli.font = photoStatus.font;
    photoZhuli.frame = [photoZhuli textRectForBounds:CGRectMake(photoStatus.x, CGRectGetMaxY(photoPerson.frame), WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoZhuli.height = photoStatus.height;
    
    //灯光师
    UILabel *photoDengguan = [[UILabel alloc]init];
    photoDengguan.textColor  =photoCompany.textColor;
    photoDengguan.text = @"灯 光 师 ：";
    photoDengguan.font = photoCompany.font;
    photoDengguan.frame = [photoDengguan textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoZhuli.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    //灯光助理
    UILabel *photoDengZhu = [[UILabel alloc]init];
    photoDengZhu.text = @"灯光助理：";
    photoDengZhu.font = photoDengguan.font;
    photoDengZhu.textColor = photoCompany.textColor;
    photoDengZhu.frame = [photoDengZhu textRectForBounds:CGRectMake(photoDengguan.x, CGRectGetMaxY(photoDengguan.frame), WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    
    //造型师
    UILabel *photoZaoxing = [[UILabel alloc]init];
    photoZaoxing.text = @"造 型 师 ：";
    photoZaoxing.font = photoStatus.font;
    photoZaoxing.textColor = photoZhuli.textColor;
    photoZaoxing.frame = [photoZaoxing textRectForBounds:CGRectMake(photoStatus.x, CGRectGetMaxY(photoDengZhu.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoDengZhu.height = photoCompany.height;
    //造型助理
    UILabel *photoZaoZhu = [[UILabel alloc]init];
    photoZaoZhu.textColor = photoZaoxing.textColor;
    photoZaoZhu.text = @"造型助理：";
    photoZaoZhu.font = photoZaoxing.font;
    photoZaoZhu.frame = [photoZaoZhu textRectForBounds:CGRectMake(photoZaoxing.x, CGRectGetMaxY(photoDengZhu.frame), WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoZaoZhu.height = photoZaoxing.height;
    
    //导师
    UILabel *photoDaoshi = [[UILabel alloc]init];
    photoDaoshi.text = @"导 师 A ：";
    photoDaoshi.font = photoCompany.font;
    photoDaoshi.textColor = photoCompany.textColor;
    photoDaoshi.frame = [photoDaoshi textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoZaoZhu.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoDaoshi.height = photoCompany.height;
    //导师B
    UILabel *photoDaoshiB = [[UILabel alloc]init];
    photoDaoshiB.text = @"导 师 B ：";
    photoDaoshiB.font = photoCompany.font;
    photoDaoshiB.textColor = photoCompany.textColor;
    photoDaoshiB.frame = [photoDaoshiB textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoDaoshi.frame), WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoDaoshiB.height = photoCompany.height;
    
    //拍照张数
    UILabel *photoNum = [[UILabel alloc]init];
    photoNum.text = @"拍照张数：";
    photoNum.font = photoCompany.font;
    photoNum.textColor = photoCompany.textColor;
    photoNum.frame = [photoNum textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoDaoshiB.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoNum.height = photoCompany.height;
    
    //拍衣件数
    UILabel *photoYiNum = [[UILabel alloc]init];
    photoYiNum.text = @"拍衣件数：";
    photoYiNum.font = photoCompany.font;
    photoYiNum.textColor = photoCompany.textColor;
    photoYiNum.frame = [photoYiNum textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoNum.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoYiNum.height = photoCompany.height;
    
    //内景数量
    UILabel *photoNeiJNum = [[UILabel alloc]init];
    photoNeiJNum.text = @"内景数量：";
    photoNeiJNum.font = photoCompany.font;
    photoNeiJNum.textColor = photoCompany.textColor;
    photoNeiJNum.frame = [photoNeiJNum textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoYiNum.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoNeiJNum.height = photoCompany.height;
    //外景数量
    UILabel *photoWaiJNum = [[UILabel alloc]init];
    photoWaiJNum.text = @"外景数量：";
    photoWaiJNum.font = photoCompany.font;
    photoWaiJNum.textColor = photoCompany.textColor;
    photoWaiJNum.frame = [photoWaiJNum textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoNeiJNum.frame), WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoWaiJNum.height = photoCompany.height;
    
    //造型数量
    UILabel *photoZaoXNum = [[UILabel alloc]init];
    photoZaoXNum.text = @"造型数量：";
    photoZaoXNum.font = photoCompany.font;
    photoZaoXNum.textColor = photoCompany.textColor;
    photoZaoXNum.frame = [photoZaoXNum textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoWaiJNum.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoZaoXNum.height = photoCompany.height;
    
    //拍摄影棚
    UILabel *photoYingp = [[UILabel alloc]init];
    photoYingp.text = @"拍摄影棚：";
    photoYingp.font = photoCompany.font;
    photoYingp.textColor = photoCompany.textColor;
    photoYingp.frame = [photoYingp textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoZaoXNum.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoYingp.height = photoCompany.height;
    
    //化妆间
    UILabel *photoHuaz = [[UILabel alloc]init];
    photoHuaz.text = @"化 妆 间 ：";
    photoHuaz.font = photoCompany.font;
    photoHuaz.textColor = photoCompany.textColor;
    photoHuaz.frame = [photoHuaz textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoYingp.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoHuaz.height = photoCompany.height;
    
    //基地名称
    UILabel *photoJidi = [[UILabel alloc]init];
    photoJidi.text = @"基地名称：";
    photoJidi.font = photoCompany.font;
    photoJidi.textColor = photoCompany.textColor;
    photoJidi.frame = [photoJidi textRectForBounds:CGRectMake(photoCompany.x, CGRectGetMaxY(photoHuaz.frame)+JianGe, WINSIZEWIDTH, WINSIZEWIDTH) limitedToNumberOfLines:1];
    photoJidi.height = photoCompany.height;
    
    [self addSubview:photoCompany];
    [self addSubview:photoStatus];
    [self addSubview:photoPerson];
    [self addSubview:photoZhuli];
    [self addSubview:photoDengguan];
    [self addSubview:photoDengZhu];
    [self addSubview:photoZaoxing];
    [self addSubview:photoZaoZhu];
    [self addSubview:photoDaoshi];
    [self addSubview:photoDaoshiB];
    [self addSubview:photoNum];
    [self addSubview:photoYiNum];
    [self addSubview:photoNeiJNum];
    [self addSubview:photoWaiJNum];
    [self addSubview:photoZaoXNum];
    [self addSubview:photoYingp];
    [self addSubview:photoHuaz];
    [self addSubview:photoJidi];

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
